package lambdasinaction.chap10;

import java.util.Date;
import java.util.Optional;

/**
 * @author bcc
 * @Description:
 * @date 2019-09-18 22:36
 */
public class Test01 {
    public static void main(String[] args) {
        Optional<Object> optObj = Optional.empty();
        System.out.println(optObj.orElse(new Date()));
    }
}
